import {
	post,
	get,
	del,
	put,
} from "@/utils/request.js"

export const observeList = (data) => {
	return post('/api/release/list', data)
}

export const observeAdd = (data) => {
	return post('/api/release/add', data)
}

// 
export const delObserve = (id) => {
	return del('/api/release/delete/' + id)
}

// 修改观察纪录
export const observeUp = (data) => {
	return put('/api/release/update', data)
}

// 文件上传
export const uploadFile = (data) => {
	return post('/api/file/upload', data)
}

// ai分析
export const aiAnalysis = (data) => {
	return post('/api/release/getAiAnalysis', data)
}

// 查询ai分析结果
export const getReleaseAiByList = (data) => {
	return get('/api/release/getAiByList/' + data)
}

// 查询单个ai分析结果
export const getReleaseAiById = (data) => {
	return get('/api/release/getAiById/' + data)
}

// 获取分享的观察分析内容
export const getShareRelease = (data) => {
	return get('/api/release/shareRelease', data)
}

/** 创建观察  单次使用ai的支付订单 */
export const createReleaseOrder = (data) => {
	return get('/api/pay/createReleaseOrder', data)
}